import 'package:xuance/bean/BanIpItemBean.dart';
import 'package:xuance/network/network_service.dart';

class BanIPApi {
  static Future<BanIpItemBean?> getList(
      {required String startDate,
      required String endDate,
      required int page,
      required String queryCondition}) async {
    var res = await NetworkService.post(
        url: "IpData/queryIpDataListFlutter",
        map: {
          "startDate": startDate,
          "endDate": endDate,
          "pageSize": 10,
          "currentPage": page,
          "queryCondition": queryCondition
        },
        isShowLoading: false);
    return res.getTypedData((m) => BanIpItemBean.fromJson(m));
  }
}
